<%@page import="com.mz.hotel.until.ATTSystem"%>
<%@ page language="java"  pageEncoding="UTF-8"%>
<%     //是否登录
      Object sessionObj=session.getAttribute(ATTSystem.SESSION_ADMIN);
	if(sessionObj!=null){
		response.sendRedirect("/manage/main.jsp");
	}

%>


<!DOCTYPE HTML >
<html>
  <head>
    
    <title>欢迎登录酒店后台管理系统</title>
    <link href="/css/style.css" rel="stylesheet" type="text/css" />
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<script language="JavaScript" src="/js/jquery.js"></script>
<script src="/js/cloud.js" type="text/javascript"></script>

<script>
	$(function(){
    $('.loginbox').css({'position':'absolute','left':($(window).width()-692)/2});
	$(window).resize(function(){  
    $('.loginbox').css({'position':'absolute','left':($(window).width()-692)/2});
    })  
    
    var errMsg='${errMsg}';
    if(errMsg!=''){
    alert(errMsg);
    }
    
    $('#formLogin').submit(function(){
    	var userName=$('#formLogin input[name=userName]').val();
    	var passWord=$('#formLogin input[name=passWord]').val();
    	
    	if(userName.length<3||passWord<3){
    		alert('请填写登录信息！');
    		return false;
    	}
    });
    
        
});  
</script> 
	

  </head>
  
  <body style="background-color:#1c77ac; background-image:url(/images/light.png); background-repeat:no-repeat; background-position:center top; overflow:hidden;">
    <div id="mainBody">
       <div id="cloud1" class="cloud"></div>
       <div id="cloud2" class="cloud"></div>
    </div> 
	<div class="logintop">    
    	<span>欢迎登录酒店后台管理界面平台</span>    
    	<ul>
    	<li><a href="#">回首页</a></li>
    	<li><a href="#">帮助</a></li>
    	<li><a href="#">关于</a></li>
   	 </ul>    
    </div>
    <div class="loginbody">
    
    <span class="systemlogo"></span> 
       
    <div class="loginbox">
    <div></div>
    <form  action="/servlet/adminServlet" method="post" id="formLogin">
    <ul>
    <li><input name="userName" type="text" class="loginuser" value="${userName}" /></li>
    <li><input name="passWord" type="passWord" class="loginpwd" value="" /></li>
    <li><input name="" type="submit" class="loginbtn" value="登录"/><label><input name="" type="checkbox" value="" checked="checked" />记住密码</label><label><a href="#">忘记密码？</a></label></li>
    </ul>
    </form>
    
    </div>
    
    </div>

    <div class="loginbm">版权所有  2013  <a href="#">uimaker.com</a>  仅供学习交流，勿用于任何商业用途</div>
	
    
</body>
</html>
